﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Travel.Web.route
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int id=(Convert.ToInt32(strid));
					ShowInfo(id);
				}
			}
		}
		
	private void ShowInfo(int id)
	{
		Travel.BLL.route bll=new Travel.BLL.route();
		Travel.Model.route model=bll.GetModel(id);
		this.lblid.Text=model.id.ToString();
		this.lblname.Text=model.name;
		this.lbltype.Text=model.type.ToString();
		this.lblkey_words.Text=model.key_words;
		this.lblstart_with.Text=model.start_with;
		this.lblend_with.Text=model.end_with;
		this.lblstart_id.Text=model.start_id.ToString();
		this.lblend_id.Text=model.end_id.ToString();
		this.lbldays_account.Text=model.days_account.ToString();
		this.lblbegin_date.Text=model.begin_date.ToString();
		this.lblcreated_on.Text=model.created_on.ToString();
		this.lblcreated_by.Text=model.created_by;
		this.lblchanged_on.Text=model.changed_on.ToString();
		this.lblchanged_by.Text=model.changed_by;

	}


    }
}
